home *** CD-ROM | disk | FTP | other *** search
/ Stone Design / Stone Design.iso / Stone_Friends / Wave / WavesWorld / Source / IBPalettes / WW3DKit / WWLightInspectorCamera.h < prev    next >
Encoding:
Text File  |  1995-03-22  |  1.2 KB  |  59 lines

  1. // copyright 1993 Michael B. Johnson; some portions copyright 1994, MIT
  2. // see COPYRIGHT for reuse legalities
  3. //
  4.  
  5. #import <appkit/appkit.h>
  6. #import <3Dkit/3Dkit.h>
  7.  
  8. @interface WWLightInspectorCamera:N3DCamera
  9. {
  10.   id       theRotator;
  11.   id       theShader;
  12.   char     *ribName;
  13.   NXColor  ribColor;
  14.  
  15.   id       sourceCamera;
  16.   
  17.   RtBound  sceneShapeBoundingBox;
  18.   RtFloat  tesselationVector[2];
  19.   RtFloat  lowRezTesselationVector[2];
  20.   int      renderStyle;
  21.   int      movingRenderStyle;
  22.  
  23.   BOOL     showSelectedShape, drawOriginForSelectedShape;
  24.  
  25.   id       image;
  26.  
  27.   float      selectionWidthEpsilon, selectionHeightEpsilon;
  28.   int        trackballAffects;
  29.  
  30.   // avoid the stack allocation for timed entries
  31.   NXPoint    oldMouse, newMouse, dMouse;
  32.   RtMatrix   rmat, irmat;
  33.   float      scaleUpFactor,
  34.              scaleDownFactor,
  35.              translateXFactor,
  36.              translateYFactor,
  37.              translateZFactor,
  38.              epsilon;
  39.  
  40. }
  41.  
  42. + initialize;
  43.  
  44. - initFrame:(const NXRect *)r;
  45. - awake;
  46. - free;
  47.  
  48. #define WW_TRACKBALL_WORLD_SHAPE    0
  49. #define WW_TRACKBALL_CAMERA         1
  50.  
  51. - mouseDown:(NXEvent *)theEvent;
  52. - (NXColor) backgroundColor;
  53. - setBackgroundColor:(NXColor)c;
  54.  
  55. - read:(NXTypedStream *)stream;
  56. - write:(NXTypedStream *)stream; 
  57.  
  58. @end
  59.